<div class="mws-panel grid_8">

    <div class="mws-panel-header">
        <span class="mws-i-24 i-table-1"><?php echo __('Quizzes'); ?></span>
    </div>

    <div class="mws-panel-body">
        <div class="">	 
            <table cellpadding="0" cellspacing="0"  class="mws-table">
                <thead>
                    <tr>
                        <th><?php echo $this->Paginator->sort('id'); ?></th>
                        <th><?php echo $this->Paginator->sort('title'); ?></th> 
                        <th><?php echo $this->Paginator->sort('start_date'); ?></th> 
                        <th class="actions"><?php echo __('Actions'); ?></th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach ($quizzes as $quiz): ?>
                        <tr>
                            <td><?php echo h($quiz['Quiz']['id']); ?>&nbsp;</td>
                            <td><?php echo h($quiz['Quiz']['title']); ?>&nbsp;</td>
                            <td><?php echo h($quiz['Quiz']['start_date']); ?>&nbsp;</td>

                            <td class="actions">
                                <?php echo $this->Html->link(__('Manage Questions'), array("controller" => "questions", 'action' => 'add', $quiz['Quiz']['id']), array("class" => "mws-ic-16 ic-blog")); ?>
                                <?php echo $this->Html->link(__('View'), array('action' => 'view', $quiz['Quiz']['id']), array("class" => "mws-ic-16 ic-view")); ?>
                                <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $quiz['Quiz']['id']), array("class" => "mws-ic-16 ic-hammer-screwdriver")); ?>
                                <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $quiz['Quiz']['id']), array("class" => "mws-ic-16 ic-cross"), __('Are you sure you want to delete # %s?', $quiz['Quiz']['id'])); ?>
                            </td>
                        </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
        </div> 
        <?php if ($this->Paginator->hasPrev() || $this->Paginator->hasNext()) { ?>	<p>
            <div class="mws-pagination">
                <?php
                echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
                echo $this->Paginator->numbers(array('separator' => '', "tag" => "li"));
                echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
                ?>

            </div>
            </p>
        <?php } ?>

        <div class='add-new'><?php echo $this->Html->link(__('New Quizz'), array('action' => 'add', $id, $type)); ?></div>	
        <div class="clear"></div>
    </div>
</div>

